class BaseCourse:
    def get_content(self):
        raise NotImplementedError("子类必须实现该方法")

class YogaCourse(BaseCourse):
    def get_content(self):
        return {
            "type": "瑜伽",
            "videos": ["yoga1.mp4", "yoga2.mp4"],
            "guides": ["体式动作讲解", "呼吸方法讲解"],
            "breathing": "腹式呼吸，配合动作"
        }

class PilatesCourse(BaseCourse):
    def get_content(self):
        return {
            "type": "普拉提",
            "videos": ["pilates1.mp4"],
            "guides": ["核心激活", "动作分解"],
            "breathing": "胸式呼吸"
        }

class StrengthCourse(BaseCourse):
    def get_content(self):
        return {
            "type": "力量训练",
            "videos": ["strength1.mp4", "strength2.mp4"],
            "guides": ["训练计划", "器械使用教学", "肌肉发力要点"],
            "breathing": "动作配合呼吸"
        }

class CardioCourse(BaseCourse):
    def get_content(self):
        return {
            "type": "有氧运动",
            "videos": ["cardio1.mp4"],
            "guides": ["热身", "有氧动作"],
            "breathing": "均匀呼吸"
        }

class BoxingCourse(BaseCourse):
    def get_content(self):
        return {
            "type": "搏击操",
            "videos": ["boxing1.mp4"],
            "guides": ["动作分解", "安全要点"],
            "breathing": "爆发力呼吸"
        }

class StretchingCourse(BaseCourse):
    def get_content(self):
        return {
            "type": "拉伸放松",
            "videos": ["stretch1.mp4", "stretch2.mp4"],
            "guides": ["全身拉伸动作", "注意事项"],
            "breathing": "缓慢深呼吸，配合动作"
        }

class CourseFactory:
    @staticmethod
    def create_course(course_type):
        if course_type == "瑜伽":
            return YogaCourse()
        elif course_type == "普拉提":
            return PilatesCourse()
        elif course_type == "力量训练":
            return StrengthCourse()
        elif course_type == "有氧运动":
            return CardioCourse()
        elif course_type == "搏击操":
            return BoxingCourse()
        elif course_type == "拉伸放松":
            return StretchingCourse()
        else:
            raise ValueError("不支持的课程类型")
